package com.niit.domain;

import java.util.Date;

public class News {
    private int id;
    private String title;
    private int type;
    private Date pubdate;
    private int click_num;

    @Override
    public String toString() {
        return "News{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", type=" + type +
                ", pubdate=" + pubdate +
                ", click_num=" + click_num +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Date getPubdate() {
        return pubdate;
    }

    public void setPubdate(Date pubdate) {
        this.pubdate = pubdate;
    }

    public int getClick_num() {
        return click_num;
    }

    public void setClick_num(int click_num) {
        this.click_num = click_num;
    }

    public News() {
    }

    public News(int id, String title, int type, Date pubdate, int click_num) {
        this.id = id;
        this.title = title;
        this.type = type;
        this.pubdate = pubdate;
        this.click_num = click_num;
    }
}
